Damon Chaplin [Sat, 25 Jul 1998 12:17:45 +0000 (12:17 +0000)]
*** empty log message ***
Damon Chaplin [Sat, 25 Jul 1998 12:09:38 +0000 (12:09 +0000)]
Fixed 2 bugs in font selection - initialising array sizes and checking that
a bitmapped font can be scaled.
Tim Janik [Sat, 25 Jul 1998 04:07:04 +0000 (04:07 +0000)]
minor adjustments.
Lars Hamann [Sat, 25 Jul 1998 01:10:58 +0000 (01:10 +0000)]
test for node != NULL (gtk_ctree_is_visible) (gtk_ctree_realize)
* gtk/gtkctree.c (gtk_ctree_sort_recursive)
(gtk_ctree_sort_recursive): test for node != NULL
(gtk_ctree_is_visible) (gtk_ctree_realize) (gtk_ctree_unrealize)
(gtk_ctree_last) : added sanity checks
* gtk/gtkclist.c (gtk_clist_button_press): removed "no_focus_row"
Lars Hamann [Fri, 24 Jul 1998 16:22:53 +0000 (16:22 +0000)]
mini code cleanup
* gtk/gtkclist.c (toggle_focus_row): mini code cleanup
Paolo Molaro [Fri, 24 Jul 1998 08:53:59 +0000 (08:53 +0000)]
Fri, 24 Jul 1998 10:56:22 +0200 Paolo Molaro <lupus@debian.org>
* gtk/gtkfeatures.h.in: added GTK_HAVE_ENUM_VALUE_STRUCT.
Tim Janik [Wed, 22 Jul 1998 22:29:10 +0000 (22:29 +0000)]
introduce testbindings on C-1 for buttons, to check out binding
Thu Jul 23 00:11:39 1998 Tim Janik <timj@gtk.org>
* gtk/testgtkrc: introduce testbindings on C-1 for buttons,
to check out binding priorities. someone should really write
gtkrc-mode for emacs.
* gtk/gtkwidget.c (gtk_widget_class_init): remove ugly bindings test.
* gtk/testgtk.c (main): and move it here ;). this test says something
on release of C-9. (this works only if the mouse pointer is on a
spinbutton and there is no focus widget).
* gtk/gtkrc.h:
* gtk/gtkrc.c:
export gtk_rc_parse_color, gtk_rc_parse_state and a new function
gtk_rc_parse_priority to parse path priority types.
export rc tokens.
feature binding parsing.
Wed Jul 22 23:41:17 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbindings.h:
* gtk/gtkbindings.c: new function gtk_binding_parse_binding() to
feature binding parsing in rc files.
* gtk/gtkbindings.c (gtk_binding_set_new): bug fix.
* gtk/gtkbindings.c (gtk_binding_pattern_compare): bug fix, we used to
order the bindings with lowest priority first.
Manish Singh [Wed, 22 Jul 1998 22:22:05 +0000 (22:22 +0000)]
actually builds and runs properly on big endian machines now, because we
* gdk/gdkrgb.c: actually builds and runs properly on big endian machines
now, because we #include config.h. Also fixed up a compile error in the
WORDS_BIGENDIAN case in gdk_rgb_convert_565_gray. I made the fix by looking
at patterns in the other code; Raph can you verify this?
* gdk/gdkthreads.c: #include <unistd.h> to quell compiler warnings
-Yosh
Lars Hamann [Wed, 22 Jul 1998 21:13:48 +0000 (21:13 +0000)]
few fixes for gtk_signal_emits
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
(tree_toggle_expansion) (real_select/unselect_row)
(gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
Tim Janik [Wed, 22 Jul 1998 19:23:51 +0000 (19:23 +0000)]
make auto-files update
Owen Taylor [Tue, 21 Jul 1998 19:31:38 +0000 (19:31 +0000)]
We free things from the text property MemChunk, so it needs to be
Wed Jul 15 17:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (new_text_property): We free things from
the text property MemChunk, so it needs to be G_ALLOC_AND_FREE.
* Fix up line start cache when splitting a property
during an insert.
Elliot Lee [Tue, 21 Jul 1998 18:49:53 +0000 (18:49 +0000)]
genmarshal.pl: Handle complex types, and functions with a return value but
genmarshal.pl: Handle complex types, and functions with a return value but
no parameters.
genmarshal.pl gtkmarshal.* gtkwidget.c: Remove support for GDK_EVENT and
STYLE parameter types.
Elliot Lee [Tue, 21 Jul 1998 16:06:00 +0000 (16:06 +0000)]
Marshallers for C_CALLBACK parameters now pass "func, func_data," instead
Marshallers for C_CALLBACK parameters now pass "func, func_data," instead
of "func,".
Raph Levien [Tue, 21 Jul 1998 05:53:44 +0000 (05:53 +0000)]
More minor config fixes.
Raph Levien [Tue, 21 Jul 1998 05:20:29 +0000 (05:20 +0000)]
Fixed minor config bug.
Elliot Lee [Tue, 21 Jul 1998 05:01:37 +0000 (05:01 +0000)]
missed this
Stefan Jeske [Tue, 21 Jul 1998 04:49:01 +0000 (04:49 +0000)]
Fixed wrong size of activity indicator. It is settable now as a fraction
Tue Jul 21 06:32:43 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkprogressbar.{c,h} gtk/testgtk.c: Fixed wrong size of
activity indicator. It is settable now as a fraction of the
total width/height using gtk_progress_bar_set_activity_blocks.
Renamed gtk_progress_bar_set_number_of_blocks to
gtk_progress_bar_set_discrete_blocks.
Elliot Lee [Tue, 21 Jul 1998 04:13:42 +0000 (04:13 +0000)]
Use common marshalling routines instead of having widget-private ones. It
Use common marshalling routines instead of having widget-private ones.
It compiles & links.
testgtk segfaults. I'm convinced that is Somebody Else's Problem
(marshalling routine gets func_data=0x0 and blithely passes it on) but the
fact that it happens now & not before makes me wrong :-)
Lars Hamann [Mon, 20 Jul 1998 19:45:45 +0000 (19:45 +0000)]
new functions, recursive process tree to specified depth
* gtk/gtkctree.c (gtk_ctree_post_recursive_to_depth)
(gtk_ctree_pre_recursive_to_depth): new functions, recursive process
tree to specified depth
(gtk_ctree_expand_to_depth): expand tree to specified depth
(gtk_ctree_collapse_to_depth): collapse all nodes with level >= depth
Lars Hamann [Sun, 19 Jul 1998 22:42:21 +0000 (22:42 +0000)]
fix for vertical scrolling in case of GTK_CLIST_ADD_MOD changed pixmap
* gtk/gtkclist.c (scroll_vertical): fix for vertical scrolling in case
of GTK_CLIST_ADD_MOD
* gtk/testgtk.c (add1000_clist): changed pixmap
Tim Janik [Sun, 19 Jul 1998 19:09:27 +0000 (19:09 +0000)]
export gtk_binary_age and gtk_interface_age.
Sat Jul 18 22:59:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.h:
* gtk/gtkmain.c: export gtk_binary_age and gtk_interface_age.
* gtk/gtktypeutils.h:
* gtk/gtkitemfactory.h: remove "void" from prototypes again.
Sat Jul 18 00:54:01 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_set_child_arg): added support for
CHILD_ARG_MENU_LABEL, CHILD_ARG_TAB_LABEL
(gtk_notebook_get_child_arg): added support for CHILD_ARG_MENU_LABEL,
CHILD_ARG_POSITION
(gtk_notebook_reorder_child): new funktion to change position of a
notebook page
(gtk_notebook_draw_arrow): draw left/right arrow with
GTK_SHADOW_ETCHED_IN if focus_tab is first/last tab.
* gtk/gtkstyle.c (gtk_default_draw_arrow):
added GTK_SHADOW_ETCHED_IN/OUT
Stefan Jeske [Sun, 19 Jul 1998 10:35:39 +0000 (10:35 +0000)]
Introduced generic GtkProgress widget. Derived GtkProgressBar from
Sun Jul 19 12:19:16 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkprogress.c gtk/gtkprogress.h gtk/gtkprogressbar.c
gtk/gtkprogressbar.h gtk/Makefile.am gtk/gtk.h gtk/testgtk.c:
Introduced generic GtkProgress widget. Derived GtkProgressBar from
GtkProgress. Made GtkProgressBar much more flexible (see testgtk).
Manish Singh [Sat, 18 Jul 1998 06:50:57 +0000 (06:50 +0000)]
explicitly specify void in prototype
-Yosh
Lars Hamann [Fri, 17 Jul 1998 16:07:08 +0000 (16:07 +0000)]
Changelog fix
Lars Hamann [Fri, 17 Jul 1998 16:05:42 +0000 (16:05 +0000)]
fix to avoid flicker at begin/end of list
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
of list
Owen Taylor [Fri, 17 Jul 1998 14:48:35 +0000 (14:48 +0000)]
If xid_ht hasn't been created yet, don't do the lookup.
Thu Jul 16 20:11:36 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkxid.c (gdk_xid_table_lookup): If xid_ht
hasn't been created yet, don't do the lookup.
Tim Janik [Fri, 17 Jul 1998 06:10:02 +0000 (06:10 +0000)]
sropped the approach of copying all signal specific data into a
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
sropped the approach of copying all signal specific data into a
GtkHandlerInfo structure. we rather keep the signal data on the stack
in gtk_signal_real_emit and pass that over to gtk_handlers_run. this
avoids multiple lookups of the signal pointer and works savely together
with destroy notifiers of handlers.
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Tim Janik [Fri, 17 Jul 1998 03:56:13 +0000 (03:56 +0000)]
care for the posssibility that someone destroys the entry on the
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
someone destroys the entry on the ::activate signal.
Tim Janik [Fri, 17 Jul 1998 00:03:35 +0000 (00:03 +0000)]
use misc->xpad for x calculation instead of ypad (typo). (gtk_arrow_set):
Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
instead of ypad (typo).
(gtk_arrow_set): clear all of the arrow's allocation (left a 1 pixel
border around the allocation).
(gtk_arrow_init): the static requisition needs to be setup in this
function rather than gtk_widget_new(), so arrow creation works without
the gtk_arrow_new() constructing.
(gtk_arrow_expose): return TRUE, since we actually handled the expose.
* gtk/gtkwidget.c (gtk_widget_real_size_request): provide a default
implementation for GtkWidget::size_request, so size requisition for
simple statically sized widgets like GtkArrow works.
Manish Singh [Thu, 16 Jul 1998 23:05:22 +0000 (23:05 +0000)]
Fix slight screwup
-Yosh
Manish Singh [Thu, 16 Jul 1998 21:24:52 +0000 (21:24 +0000)]
minor changes to gtk-config: --cflags doesn't prepend -I@libdir@/glib/include
anymore, since glib-config handles it; --libs strips out redundant -L<path>'s
properly (there was code in there to do it before, but it didn't work)
-Yosh
Tim Janik [Thu, 16 Jul 1998 20:23:12 +0000 (20:23 +0000)]
signdness corrections all ove the place. implementation of object
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
* gtk/gtknotebook.c: signdness corrections all ove the place.
implementation of object arguments: GtkNotebook::enable_popup,
GtkNotebook::tab_pos, GtkNotebook::tab_border, GtkNotebook::show_tabs,
GtkNotebook::show_border, GtkNotebook::scrollable and GtkNotebook::page.
begun implementation of child args, we have GtkNotebook::tab_label, but
GtkNotebook::menu_label and GtkNotebook::position still lack the
implementation.
(gtk_notebook_remove_page):
(gtk_notebook_current_page): allow negative indices (-1) as alias for
the last page.
* gtk/gtkentry.h:
* gtk/gtkentry.c: GtkType and macro fixups. implementation of object
arguments GtkEntry::max_length and GtkEntry::visibility.
(gtk_entry_adjust_scroll): queue a redraw.
* gtk/gtkeditable.h:
* gtk/gtkeditable.c: GtkType und macro fixups. implementation of
object arguments GtkEditable::text_position and GtkEditable::editable.
new (action) signal GtkEditable::set_editable.
provide a default handler for GtkEditable::changed that queues a redraw.
* gtk/gtktext.h:
* gtk/gtktext.c: GtkType und macro fixups. override GtkEditable::
set_editable.
Elliot Lee [Thu, 16 Jul 1998 19:41:12 +0000 (19:41 +0000)]
Make gdk_window_foreign_new fail gracefully
Lars Hamann [Thu, 16 Jul 1998 13:05:02 +0000 (13:05 +0000)]
fix for sigsegv in case of drag_target == NULL fix for
* gtk/gtkctree.c (gtk_ctree_button_release): fix for sigsegv in
case of drag_target == NULL
* gtk/gtkclist.c (gtk_clist_button_press): fix for GTK_2/3BUTTON_PRESS.
Clist did not emit an select_row signal in case of GTK_2/3BUTTON_PRESS.
* gtk/gtkfilesel.c (gtk_file_selection_file_button,
gtk_dir_selection_file_button): fix due to changes in clist's
select_row signal.
Tim Janik [Thu, 16 Jul 1998 02:47:15 +0000 (02:47 +0000)]
handle negative values similar to gtk_widget_set_uposition(). that is:
Thu Jul 16 01:27:15 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.h:
* gtk/gtkwidget.c (gtk_widget_set_usize): handle negative values
similar to gtk_widget_set_uposition(). that is: -1=unspecified,
-2=leave untouched. changed the width/height field of GtkWidgetAuxInfo
to be gint16s rather than guint16s, since that's what the code expected
(for a long time actually).
* gtk/gtkviewport.c:
added support for object arguments: GtkViewport::shadow_type,
GtkViewport::vadjustment and GtkViewport::hadjustment.
(gtk_viewport_add): chain gtk_bin_add.
* gtk/gtkscrolledwindow.c:
added support for object argument: GtkScrolledWindow::hscrollbar_policy,
GtkScrolledWindow::vscrollbar_policy and GtkScrolledWindow::viewport.
* gtk/gtkadjustment.h:
* gtk/gtkadjustment.c:
* gtk/gtkctree.h:
* gtk/gtkclist.h:
* gtk/gtkctree.c:
* gtk/gtkclist.c:
* gtk/gtkscrolledwindow.h:
* gtk/gtkscrolledwindow.c:
* gtk/gtkviewport.h:
* gtk/gtkviewport.c:
GtkType and macro fixups.
Lars Hamann [Wed, 15 Jul 1998 23:40:00 +0000 (23:40 +0000)]
Added focus handling, horizontal and vertical autoscrolling, extended
* gtk/gtkctree.h :
* gtk/gtkctree.c :
Added focus handling, horizontal and vertical autoscrolling,
extended Selection Mode, key bindings
Added gtk_ctree_toggle_expansion & gtk_ctree_toggle_expansion_recursive
Changed gtk_ctree_scroll_to to gtk_ctree_moveto.
Removed gtk_ctree_clear.
* gtk/gtkclist.h :
* gtk/gtkclist.c :
Added focus handling, horizontal and vertical autoscrolling,
extended Selection Mode, key bindings
Manish Singh [Wed, 15 Jul 1998 21:15:33 +0000 (21:15 +0000)]
Build fixes for gdkrgb
-Yosh
Raph Levien [Wed, 15 Jul 1998 20:25:52 +0000 (20:25 +0000)]
Integrating GdkRgb 0.0.3 into the Gtk+ source tree.
Integrating GdkRgb 0.0.3 into the Gtk+ source tree.
Tim Janik [Wed, 15 Jul 1998 12:25:43 +0000 (12:25 +0000)]
pass only the signal_id to this function. it needs to relookup the signal
Wed Jul 15 14:20:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_real_emit): pass only the signal_id
to this function. it needs to relookup the signal multiple times.
this fixes spurious segfaults that could show up with signal intensive
code, when classes are created during a pending emission (which is
normal case).
Tim Janik [Tue, 14 Jul 1998 17:48:28 +0000 (17:48 +0000)]
don't destroy a buttons child if it isn't a label.
Tue Jul 14 19:12:12 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbutton.c (gtk_button_set_arg): don't destroy a buttons
child if it isn't a label.
Tim Janik [Tue, 14 Jul 1998 16:34:48 +0000 (16:34 +0000)]
macro and GtkType fixups.
Tue Jul 14 11:41:38 1998 Tim Janik <timj@gtk.org>
* gtk/gtkdialog.h:
* gtk/gtkseparator.h:
* gtk/gtkhseparator.h:
* gtk/gtkvseparator.h: macro and GtkType fixups.
Tim Janik [Tue, 14 Jul 1998 07:40:15 +0000 (07:40 +0000)]
display the current cursor name.
Tue Jul 14 06:25:46 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (create_cursors): display the current cursor name.
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c (gtk_type_init_builtin_types): cleanups to
the fundamental type definition. the GtkArg union now only covers
the required storage types for argument values. adapted the GTK_VALUE_*
macro set. handle GTK_TYPE_UCHAR. definiton of type set bounds macros.
* gtk/gtkargcollector.c (gtk_arg_collect_value): clean ups of the
code, fixed int/float collection. fixed a bug in the sanity checking
code for GtkObjects.
* gtk/gtkbindings.c (gtk_binding_entry_add_signal): fixups of the
argument collection code.
* gtk/gtksignal.c (gtk_signal_collect_params): use the type set bounds
macros when distinguishing the return type.
George Lebl [Mon, 13 Jul 1998 19:43:33 +0000 (19:43 +0000)]
check if old_parent_private is not NULL before trying to g_list_remove the
Mon Jul 13 12:42:51 1998 George Lebl <jirka@5z.com>
* gdk/gdkwindow.h: (gdk_window_reparent) check if old_parent_private
is not NULL before trying to g_list_remove the child. A patch
from Michael Lausch.
this finally fixes the swallows for the panel :)
Tim Janik [Sun, 12 Jul 1998 14:43:03 +0000 (14:43 +0000)]
fix float argument collection (always casted to doubles upon argument
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument
collection (always casted to doubles upon argument passing).
Tim Janik [Sun, 12 Jul 1998 04:13:02 +0000 (04:13 +0000)]
call the base classes' object_init_func for derived objects with the
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'
object_init_func for derived objects with the object's ->klass field
still pointing to the corresponding base class, otherwise overridden
class functions could get called with partly-initialized objects.
(change from Tero Pulkkinen <terop@modeemi.cs.tut.fi>).
Tim Janik [Sun, 12 Jul 1998 01:34:20 +0000 (01:34 +0000)]
new functions which wraps gtk_arg_get_info().
Sun Jul 12 02:47:35 1998 Tim Janik <timj@gtk.org>
* gtk/gtkobject.h:
* gtk/gtkobject.c:
(gtk_object_arg_get_info): new functions which wraps gtk_arg_get_info().
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c:
(gtk_container_child_arg_get_info): new function which wraps
gtk_arg_get_info().
Tim Janik [Fri, 10 Jul 1998 11:36:26 +0000 (11:36 +0000)]
strictly check for the associated get/set arg functions. if an arg is
Fri Jul 10 13:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c:
(gtk_container_arg_get):
(gtk_container_arg_set):
* gtk/gtkobject.c:
(gtk_object_arg_set):
(gtk_object_arg_get):
strictly check for the associated get/set arg functions. if an
arg is readable or writable, the associated class functions *must*
be provided.
Tim Janik [Fri, 10 Jul 1998 08:53:52 +0000 (08:53 +0000)]
only take the padding into account if there is an accelerator.
Fri Jul 10 09:37:50 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): only take the
padding into account if there is an accelerator.
Tim Janik [Fri, 10 Jul 1998 03:59:44 +0000 (03:59 +0000)]
collect the arguments with gtk_container_child_args_collect, not through
Fri Jul 10 05:51:44 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c:
(gtk_container_add_with_args): collect the arguments with
gtk_container_child_args_collect, not through gtk_object_args_collect.
(gtk_container_child_set): likewise.
(cut 'n paste strikes back)
Tim Janik [Fri, 10 Jul 1998 02:33:06 +0000 (02:33 +0000)]
added a new internal type GTK_TYPE_IDENTIFIER which is derived from
Fri Jul 10 04:20:35 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: added a new internal type GTK_TYPE_IDENTIFIER
which is derived from GTK_TYPE_STRING.
* gtk/gtkbindings.c: reworked the argument type handling.
CDT 1998 Shawn T. Amundson [Fri, 10 Jul 1998 02:09:10 +0000 (02:09 +0000)]
add in just enough support for 1 or 4 bits so that it seems to allow
Thu Jul 9 21:03:19 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gtk/gtkpreview.c: add in just enough support for 1 or 4 bits
so that it seems to allow normal operation in those modes,
although you will only see black. 1 bit untested
CDT 1998 Shawn T. Amundson [Fri, 10 Jul 1998 01:27:37 +0000 (01:27 +0000)]
4 bit support, increased available_depths array, which was too low (?)
Thu Jul 9 20:20:04 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gdk/gdkvisuals.c: 4 bit support, increased available_depths
array, which was too low (?)
Tim Janik [Thu, 9 Jul 1998 23:00:34 +0000 (23:00 +0000)]
deleted most of the argument handling code, since that is now implemented
Fri Jul 10 00:02:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c: deleted most of the argument handling code, since
that is now implemented in gtkarg.c. similar to gtk_object_args_collect,
we now export a new function gtk_container_child_args_collect().
for consistency with the object arguments, a few functions got renamed:
gtk_container_child_arg_get -> gtk_container_child_get,
gtk_container_child_arg_set -> gtk_container_child_set,
gtk_container_child_arg_getv -> gtk_container_child_getv,
gtk_container_child_arg_setv -> gtk_container_child_setv,
gtk_container_add_with_argv -> gtk_container_addv.
note, gtk_container_add_with_args() remained, because its equivalent
would be gtk_container_add(,, ...) which would break all existing code.
(gtk_container_add_child_arg_type): similar to gtk_object_add_arg_type,
we expect the `arg_name' argument to be a const static string now.
(gtk_container_get_child_arg_type): function removed.
Thu Jul 9 07:03:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c: new file which holds gtk_arg_collect_value().
this is a static inline function that collects command line arguments
from a va_list. this file can just be included in all places that
need this functionality.
* gtk/gtkarg.h:
* gtk/gtkarg.c: new files which implement most of the argument
handling stuff from gtkobject.c. also collected a few more
gtk_arg_* utility functions from else places.
* gtk/gtkobject.h:
* gtk/gtkobject.c: moved most of the argument handling code into
gtkarg.c. we now export gtk_object_args_collect() as a non-public
method with a blind va_list pointer.
(gtk_object_add_arg_type): the `arg_name' argument is required to be a
const static string now.
(gtk_object_get_arg_type): function got removed.
* gtk/gtkwidget.c:
(gtk_widget_set):
(gtk_widget_new): adaptions for gtk_object_args_collect().
* gtk/gtktypeutils.c (gtk_type_init_builtin_types): changed the internal
fundamental type name so as to have a valid prefix, e.g. "bool"->
"gboolean", "string"->"GtkString" and somesuch, left "void" as is,
though that should probably be something like GtkNone since the
type itself is called GTK_TYPE_NONE.
even the internal type names need to avoid name clashes and must live
in their own namespace, several code portions rely on that.
we should relly have typedefs such as typedef gchar* GtkString; so the
fundamental type names can be used for code dumpers just like with all
the Gtk/Gdk types.
Tim Janik [Wed, 8 Jul 1998 14:12:27 +0000 (14:12 +0000)]
handle GTK_RELIEF_HALF, which was introduced to keep either
Wed Jul 8 15:31:28 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbutton.c: handle GTK_RELIEF_HALF, which was introduced to
keep either GTK_STATE_NORMAL for relief buttons (GTK_RELIEF_NONE) or
to still honour GTK_WIDGET_STATE(), e.g. for coloured buttons
(GTK_RELIEF_HALF).
(gtk_button_paint): set the background for prelighted buttons with
GTK_STATE_NORMAL only if GTK_RELIEF_NONE.
(gtk_button_draw_focus): if GTK_RELIEF_NONE, use GTK_STATE_NORMAL for
the shadow type (otherwise we get strange shadows for coloured buttons).
(gtk_button_set_relief): queue a redraw after changing
the relief.
(gtk_button_class_init):
(gtk_button_set_arg):
(gtk_button_get_arg): added object argument "GtkButton::relief".
* gtk/gtkenums.h (enum): added GTK_RELIEF_HALF.
Tim Janik [Tue, 7 Jul 1998 01:25:27 +0000 (01:25 +0000)]
totaly binary incomnpatible change:
Mon Jul 6 18:30:48 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbutton.h:
* gtk/gtkbutton.c: GtkButtons are now derived from GtkBin. we mirror
GTK_BIN (button)->child to button->child to keep source compatibility.
* gtk/gtkoptionmenu.c:
* gtk/gtkclist.c:
* gtkcheckbutton.c: don't refer to button->child, but
GTK_BIN (button)->child instead.
BST 1998 Tony Gale [Mon, 6 Jul 1998 11:07:53 +0000 (11:07 +0000)]
update anon CVS info
Mon Jul 6 12:06:23 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtkfaq.sgml: update anon CVS info
Tim Janik [Sat, 4 Jul 1998 15:31:30 +0000 (15:31 +0000)]
changed reversed_[12] to reserved_[12] in gtk_*_get_type functions.
Sat Jul 4 13:16:24 1998 Tim Janik <timj@gtk.org>
* gtk/*.c: changed reversed_[12] to reserved_[12] in gtk_*_get_type
functions.
* gdk/gdkwindow.c:
* gdk/gdkvisual.c: check for some pointer values to be != NULL, prior
to XFree() calls.
Federico Mena Quintero [Fri, 3 Jul 1998 22:39:22 +0000 (22:39 +0000)]
Added GDK_HAVE_FULL_CROSSING_EVENT, since I seem to have erroneously added
1998-07-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Added GDK_HAVE_FULL_CROSSING_EVENT, since
I seem to have erroneously added it to gtkfeatures.h (not .h.in).
Manish Singh [Fri, 3 Jul 1998 21:56:28 +0000 (21:56 +0000)]
Added GTK_HAVE_RELIEF_STYLE
-Yosh
Carsten Haitzler [Fri, 3 Jul 1998 20:33:16 +0000 (20:33 +0000)]
file theme2_window.c was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:33:14 +0000 (20:33 +0000)]
file theme2_checkbutton.c was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:36 +0000 (20:23 +0000)]
file d3_n.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:35 +0000 (20:23 +0000)]
file d2_n.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:34 +0000 (20:23 +0000)]
file d2_h.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:33 +0000 (20:23 +0000)]
file d2_d.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:32 +0000 (20:23 +0000)]
file d1_n.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:31 +0000 (20:23 +0000)]
file d1_h.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:30 +0000 (20:23 +0000)]
file d1_d.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:29 +0000 (20:23 +0000)]
file b_out.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:28 +0000 (20:23 +0000)]
file b_in.png was initially added on branch themes.
Carsten Haitzler [Fri, 3 Jul 1998 20:23:27 +0000 (20:23 +0000)]
file b_full.png was initially added on branch themes.
Tim Janik [Wed, 1 Jul 1998 19:36:53 +0000 (19:36 +0000)]
temporary implementation of action signal "debug_msg"
Wed Jul 1 20:58:46 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: temporary implementation of action signal "debug_msg"
* gtk/gtkbindings.c (gtk_binding_entry_add_signal): fixed an off-by-one
error that prevented signal to entry addition for signals with
parameters.
Manish Singh [Wed, 1 Jul 1998 17:06:47 +0000 (17:06 +0000)]
fix for properly detecting shared lib support on SunPro cc (taken from
libtool 1.2.a)
-Yosh
Tim Janik [Wed, 1 Jul 1998 01:35:13 +0000 (01:35 +0000)]
implementation of the "class" keyword for styles.
Wed Jul 1 03:33:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: implementation of the "class" keyword for styles.
Tim Janik [Tue, 30 Jun 1998 20:31:00 +0000 (20:31 +0000)]
minor updates.
Tim Janik [Tue, 30 Jun 1998 12:34:36 +0000 (12:34 +0000)]
fixed lookup order for rc styles. the latest defined rc set pattern is
Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
rc set pattern is favoured, this is needed for overriding of style
patterns with subsequently parsed rc files.
Tim Janik [Tue, 30 Jun 1998 11:05:20 +0000 (11:05 +0000)]
code overhaul for simplicity and more descriptive error messages.
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
error messages.
Tim Janik [Tue, 30 Jun 1998 08:20:45 +0000 (08:20 +0000)]
ok, this enables the possibility for key-release bindings.
but nearly no widget really cares to set GDK_KEY_RELEASE_MASK,
which needs to be enabled in order for release bindings to work.
Tue Jun 30 09:24:40 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c (gtk_accelerator_parse): parse "<Release>"
modifier as well.
(gtk_accelerator_name): add "<Release>" to the accelerator name if
neccessary.
* gtk/gtkbindings.c (BINDING_MOD_MASK): take BINDING_MOD_MASK into
account.
* gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
default handler for key-release events, which checks for activation
of GDK_RELEASE_MASK key bindings.
* gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
Tim Janik [Tue, 30 Jun 1998 08:02:53 +0000 (08:02 +0000)]
implemented default handler for key-release events, which checks for
Tue Jun 30 09:24:40 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
default handler for key-release events, which checks for activation
of GDK_RELEASE_MASK key bindings.
* gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
Tim Janik [Mon, 29 Jun 1998 11:41:46 +0000 (11:41 +0000)]
GtkType and macro fixups. widget argument implementation:
Mon Jun 29 13:39:45 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarrow.h: GtkType and macro fixups.
* gtk/gtkarrow.c: widget argument implementation: "GtkArrow::arrow_type",
"GtkArrow::shadow_type".
Elliot Lee [Mon, 29 Jun 1998 02:12:46 +0000 (02:12 +0000)]
Added OBJECT type
Tim Janik [Sun, 28 Jun 1998 10:07:37 +0000 (10:07 +0000)]
GtkType and macro fixups.
Sun Jun 28 11:39:17 1998 Tim Janik <timj@gtk.org>
* gtk/gtkalignment.h:
* gtk/gtkbin.h: GtkType and macro fixups.
* gtk/gtkalignment.c (gtk_alignment_class_init): widget argument
implementation: GtkAlignment::xalign, GtkAlignment::yalign,
GtkAlignment::xscale, GtkAlignment::yscale.
Tim Janik [Sun, 28 Jun 1998 07:46:10 +0000 (07:46 +0000)]
call the base class init fucntions from all parent types upon class
Sun Jun 28 04:29:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_class_init): call the base class init
fucntions from all parent types upon class initialization.
* gtk/gtkcontainer.c:
(gtk_container_get_type): announce gtk_container_base_class_init to
the type system.
(gtk_container_base_class_init): new function to feature base class
initialization.
(gtk_container_get_child_arg):
(gtk_container_set_child_arg): call the GtkContainerClass get_child_arg
and set_child_arg methods of the class indicated through the argument
name.
* gtk/gtkobject.c:
(gtk_object_base_class_init): new function to feature base class
initialization.
(gtk_object_init_type): announce gtk_object_base_class_init to the type
system.
(gtk_object_class_init): setup the get_arg and set_arg pointers for
GtkObjectClass.
(gtk_object_setv):
(gtk_object_getv): call the GtkObjectClass get_arg and set_arg methods,
instead of bothering the type system with this.
* gtk/gtkaccellabel.c:
* gtk/gtkbutton.c:
* gtk/gtkradiobutton.c:
* gtk/gtktable.c:
* gtk/gtktogglebutton.c:
* gtk/gtktipsquery.c:
* gtk/gtkbox.c:
* gtk/gtkpacker.c:
* gtk/gtkwidget.c:
* gtk/gtkwindow.c:
* gtk/gtkframe.c:
* gtk/gtkmisc.c:
* gtk/gtklabel.c: set the object_class->{g|s}et_arg pointers to the
corresponding gtk_*_{g|s]et_arg functions and updated the gtk_*_get_type
functions wrt GtkTypeInfo initialization. changed a lot of the set/get
arg functions to take a GtkObject argument.
gtk/gtkadjustment.c:
gtk/gtkalignment.c:
gtk/gtkarrow.c:
gtk/gtkaspectframe.c:
gtk/gtkbbox.c:
gtk/gtkbin.c:
gtk/gtkcheckbutton.c:
gtk/gtkcheckmenuitem.c:
gtk/gtkclist.c:
gtk/gtkcolorsel.c:
gtk/gtkcombo.c:
gtk/gtkctree.c:
gtk/gtkcurve.c:
gtk/gtkdata.c:
gtk/gtkdialog.c:
gtk/gtkdrawingarea.c:
gtk/gtkeditable.c:
gtk/gtkentry.c:
gtk/gtkeventbox.c:
gtk/gtkfilesel.c:
gtk/gtkfixed.c:
gtk/gtkfontsel.c:
gtk/gtkgamma.c:
gtk/gtkhandlebox.c:
gtk/gtkhbbox.c:
gtk/gtkhbox.c:
gtk/gtkhpaned.c:
gtk/gtkhruler.c:
gtk/gtkhscale.c:
gtk/gtkhscrollbar.c:
gtk/gtkhseparator.c:
gtk/gtkimage.c:
gtk/gtkinputdialog.c:
gtk/gtkitem.c:
gtk/gtkitemfactory.c:
gtk/gtklist.c:
gtk/gtklistitem.c:
gtk/gtkmenu.c:
gtk/gtkmenubar.c:
gtk/gtkmenuitem.c:
gtk/gtkmenushell.c:
gtk/gtknotebook.c:
gtk/gtkoptionmenu.c:
gtk/gtkpaned.c:
gtk/gtkpixmap.c:
gtk/gtkpreview.c:
gtk/gtkprogressbar.c:
gtk/gtkradiomenuitem.c:
gtk/gtkrange.c:
gtk/gtkruler.c:
gtk/gtkscale.c:
gtk/gtkscrollbar.c:
gtk/gtkscrolledwindow.c:
gtk/gtkseparator.c:
gtk/gtkspinbutton.c:
gtk/gtkstatusbar.c:
gtk/gtktext.c:
gtk/gtktoolbar.c:
gtk/gtktooltips.c:
gtk/gtktree.c:
gtk/gtktreeitem.c:
gtk/gtkvbbox.c:
gtk/gtkvbox.c:
gtk/gtkviewport.c:
gtk/gtkvpaned.c:
gtk/gtkvruler.c:
gtk/gtkvscale.c:
gtk/gtkvscrollbar.c:
gtk/gtkvseparator.c: updated the GtkTypeInfo initialization code to
match the modified GtkTypeInfo structure.
Manish Singh [Sun, 28 Jun 1998 06:25:36 +0000 (06:25 +0000)]
ChangeLog fun
-Yosh
Manish Singh [Sun, 28 Jun 1998 06:24:49 +0000 (06:24 +0000)]
use rand() instead of random() for portability
-Yosh
Manish Singh [Sun, 28 Jun 1998 05:44:14 +0000 (05:44 +0000)]
use native Xlib XConvertCase if it's available
-Yosh
Tim Janik [Sat, 27 Jun 1998 13:51:41 +0000 (13:51 +0000)]
compatibility function to provide XConvertCase() functionality from X11R6
Sat Jun 27 15:44:46 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
XConvertCase() functionality from X11R6 on X11R5 systems.
Stefan Jeske [Thu, 25 Jun 1998 09:01:42 +0000 (09:01 +0000)]
Added functions gdk_text_height, gdk_string_height, gdk_char_height to
Thu Jun 25 10:50:34 1998 Stefan Jeske <stefan@gtk.org>
* gdk/gdk.h gdk/gdkfont.c: Added functions gdk_text_height,
gdk_string_height, gdk_char_height to retrieve the exact
height of a text.
BST 1998 Tony Gale [Thu, 25 Jun 1998 08:57:29 +0000 (08:57 +0000)]
add section on GtkCList widget, contributed by Stefan Mars
Thu Jun 25 07:53:51 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: add section on GtkCList widget, contributed by Stefan Mars <mars@lysator.liu.se>
* examples/clist/clist.c examples/clist/Makefile: example code
for GtkCList widget from the Tutorial
Stefan Jeske [Thu, 25 Jun 1998 07:43:27 +0000 (07:43 +0000)]
fix for the compatibility fix
Tim Janik [Wed, 24 Jun 1998 17:15:05 +0000 (17:15 +0000)]
do not avoid to queue for a resize if the container is not visible, we
Wed Jun 24 16:38:02 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbin.c (gtk_bin_remove): do not avoid to queue for a resize
if the container is not visible, we might be a toplevel! this holds
for all other base container implementations as well, that are
candidates to derive toplevels from. in general the resizing code will
care about visibility itself.
* gtk/gtkmenushell.c (gtk_menu_shell_remove): likewise.
* gtk/gtkbox.c (gtk_box_remove): likewise.
* gtk/gtkwindow.c (gtk_window_move_resize): save ->use_uposition around
gtk_window_set_hints(), since we haven't calculated the new position
yet.
* gdk/gdkwindow.c (gdk_window_get_pointer): take care that *x, *y and
*mask are alway initialized in a sane way, regardless of the return
value.
Tim Janik [Wed, 24 Jun 1998 12:24:20 +0000 (12:24 +0000)]
changelog entry
Tim Janik [Wed, 24 Jun 1998 12:22:23 +0000 (12:22 +0000)]
new function gtk_container_child_arg_set, similar to
Wed Jun 24 14:14:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c: new function gtk_container_child_arg_set, similar
to gtk_container_child_arg_setv, but takes a variable argument list.
new function gtk_container_get_child_arg_type, which is needed by
gtk_object_collect_args.
* gtk/gtkobject.c: changed prototype for gtk_object_collect_args, to
take a function pointer to figure the argument type.
adapted callers to pass gtk_object_get_arg_type.
* gtk/gtkwidget.c: adapted gtk_object_collect_args callers to pass
gtk_object_get_arg_type..
* gtk/gtkpacker.h:
* gtk/gtkpacker.c:
(gtk_packer_reorder_child): new function to change the packing order
of a child.
(gtk_packer_size_request):
(gtk_packer_size_allocate): take container->border_width into acount.
* gtk/gtkpacker.c: implemented widget arguments:
"GtkPacker::spacing", "GtkPacker::border_width", "GtkPacker::pad_x",
"GtkPacker::pad_y", "GtkPacker::ipad_x", "GtkPacker::ipad_y".
implemented child arguments:
"GtkPacker::side", "GtkPacker::anchor", "GtkPacker::expand",
"GtkPacker::fill_x", "GtkPacker::fill_y", "GtkPacker::use_default",
"GtkPacker::border_width", "GtkPacker::pad_x", "GtkPacker::pad_y",
"GtkPacker::ipad_x", "GtkPacker::ipad_y", "GtkPacker::position".
* gtk/gtkmisc.c (gtk_misc_set_arg): for padding args, set the padding,
not the alignment.
* gtk/gtkeventbox.h:
* gtk/gtkeventbox.c: GtkType and macro fixups.
* gtk/testgtk.c (entry_toggle_sensitive): new function to toggle
sensitivity of an entry.
* gtk/gtkstyle.c (gtk_style_new): support normal grey as default color
for insensitive base.
* gtk/gtkentry.c (gtk_entry_realize): set the window backgrounds
widget state dependent.
(gtk_entry_style_set): likewise.
(gtk_entry_state_changed): set background color on state changes.
(gtk_entry_draw_text): for non selected text, use state dependent
colors.
* gtk/gtktogglebutton.c: support for widget arguments
"GtkToggleButton::active" and "GtkToggleButton::draw_indicator".
Stefan Jeske [Wed, 24 Jun 1998 07:59:05 +0000 (07:59 +0000)]
Added compatibility code for 1.0.x-like parameters. Changed internal
* gtk/gtkspinbutton.c (gtk_spin_button_spin): Added compatibility
code for 1.0.x-like parameters. Changed internal interface of
gtk_spin_button_real_spin. Several fixes to avoid emission of
"value_changed" where possible.
Tim Janik [Wed, 24 Jun 1998 06:25:14 +0000 (06:25 +0000)]
added a frame with radio buttons to select the resize_mode for the
Wed Jun 24 07:47:29 1998 Tim Janik <timj@gtk.org>
* gtk/testgtk.c (create_idle_test): added a frame with radio buttons
to select the resize_mode for the idle-labels container.
* gtk/gtkframe.h:
* gtk/gtkframe.c: GtkType and macro corrections.
* gtk/gtkradiobutton.c (gtk_radio_button_set_arg): new function to
support radio grouping.
Tue Jun 23 08:01:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_set_resize_mode): queue a resize
unconditionally if resize_mode has changed.
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): set
GTK_RESIZE_QUEUE on the scrolled window.
(gtk_scrolled_window_construct): set GTK_RESIZE_PARENT for the vieport.
Tue Jun 23 04:20:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c:
(GTK_IS_RESIZE_CONTAINER): new macro to find out if
a given gtkobject is a container with resize_mode==GTK_RESIZE_PARENT.
(gtk_container_queue_resize): new function to queue a container for
a *size* reallocation (doesn't affect its position, and thus its
parent is left untouched usually).
(gtk_container_get_resize_container): new function to retrive the next
most resize container which is not itself queued for a resize.
(gtk_container_idle_sizer): new function to carefully process the
container_resize_queue since it can change during invokation of
gtk_container_check_resize().
(gtk_container_resize_children): total rework of this function to
properly handle resize containers. makes a lot of assumptions whitch
are stated in the comments.
* gtk/gtkcontainer.c:
(gtk_container_real_check_resize): only requeue ourselves if we are not
a resize container.
(gtk_container_clear_resize_widgets): care for automatic deletion of our
resize_widgets list on size_allocate through a handler connection.
* gtk/gtkwindow.c (gtk_window_shutdown): new functionm to reset the
focus and default widget of a window, so to take the burden from
gtk_widget_unparent.
* gtk/gtkviewport.c: removed gtk_viewport_check_resize, which tried
to be clever, but actually messed up the resize_children logic and
caused unneccessary allocations on its whole branch. besides this,
it messed up the display by not invoking a redraw after the allocation.
* gtk/gtktable.c (gtk_table_set_child_arg): reverted recent change, so
that it is the child again that is queued for a resize.
(gtk_table_attach): likewise.
(gtk_table_remove): likewise.
Manish Singh [Wed, 24 Jun 1998 05:23:19 +0000 (05:23 +0000)]
s/GkWidget/GtkWidget/
-Yosh
Miguel de Icaza [Tue, 23 Jun 1998 15:55:51 +0000 (15:55 +0000)]
Export the gtk_entry_adjust_scroll. Required if you change the cursor
1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkentry.h, gtk/gtkentry.c: Export the
gtk_entry_adjust_scroll. Required if you change the cursor
position and want to sync it up with your code (Midnight Commander
gtk front end needs this).
* gtk/gtktable.c: Deal with tables that have size 0, 0.
BST 1998 Tony Gale [Tue, 23 Jun 1998 11:15:20 +0000 (11:15 +0000)]
new file to explain how the code examples should be extracted from the
Tue Jun 23 12:12:19 BST 1998 Tony Gale <gale@gtk.org>
* examples/README.1ST: new file to explain how the
code examples should be extracted from the tutorial.
Raja R Harinath [Mon, 22 Jun 1998 22:27:23 +0000 (22:27 +0000)]
Restore lost/hidden ChangeLog entry.
Lars Hamann [Mon, 22 Jun 1998 17:00:21 +0000 (17:00 +0000)]
new CTree line style GTK_CTREE_LINES_TABBED